<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAkbusMaterialTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('akbus_material', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('title')->nullable()->comment('资质名称');
            $table->string('supplier')->nullable()->comment('供应商');
            $table->string('specs')->nullable()->comment('规格');
            $table->tinyInteger('unit')->nullable()->comment('单位');
            $table->integer('amount')->nullable()->comment('数量');
            $table->decimal('price',10,2)->nullable()->comment('单价');
            $table->tinyInteger('is_new')->nullable()->comment('是否新入库 0否  1是');
            $table->string('remark')->nullable()->comment('备注');
            $table->tinyInteger('del_state')->nullable()->comment('删除状态');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('akbus_material');
    }
}
